/*
 * 文件名：BennerFacade.java
 * 版权：MoonBox 
 * 修改人：Peter
 * 修改时间：2018年10月24日
 * 修改内容：新增
 */
package com.renzhebiao.lkang.facade;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.renzhebiao.lkang.entity.ServiceProjectPO;
import com.renzhebiao.lkang.page.PageDTO;
import com.renzhebiao.lkang.page.PaginationDTO;
import com.renzhebiao.lkang.query.ServiceProjectQuery;
import com.renzhebiao.lkang.service.IServiceProjectService;

/**
 * <p>
 * 
 * @author Peter
 * @since 1.0.0
 */
@Service
public class ServiceProjectFacade {

    @Autowired
    private IServiceProjectService ServiceProjectService;

    @Transactional
    public void add(ServiceProjectPO po) {
        this.ServiceProjectService.add(po);
    }

    @Transactional
    public void edit(ServiceProjectPO po) {
        this.ServiceProjectService.edit(po);
    }

    /**
     * 逻辑删除
     * 
     * @param id
     */
    @Transactional
    public void delete(Long id) {
        this.ServiceProjectService.delete(id);
    }

    /**
     * 查询列表
     * 
     * @return
     */
    public List<ServiceProjectPO> getServiceProjectList(ServiceProjectQuery po) {
        return this.ServiceProjectService.getServiceProjectList(po);
    }

    /**
     * 查询单条
     * 
     * @return
     */
    public ServiceProjectPO getServiceProject(Long id) {
        return this.ServiceProjectService.getServiceProject(id);
    }

    /**
     * 分页查询
     * 
     * @param paging
     * @return
     */
    public PageDTO<ServiceProjectPO> getServiceProjectByPage(PaginationDTO<ServiceProjectQuery, Void> paging) {
        return this.ServiceProjectService.getServiceProjectByPage(paging);
    }

}
